package org.bluedream.comm.base;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @ClassName PageEntity
 * @Description TODO
 * @Author foxsand
 * @Data 2021-06-28 16:41
 * @Version
 */
@ToString(callSuper = true)
@NoArgsConstructor
public class PageEntity<T> extends BaseEntity<T> {
    private static final long serialVersionUID = -8596775877393206795L;

    @TableField(exist = false)
    @Setter
    @Getter
    protected Long limit;
    @TableField(exist = false)
    @Setter
    @Getter
    protected Long page;

    public PageEntity(String id){
        super(id);
    }

    public PageEntity(Long limit , Long pageSize) {
        this.limit = limit;
        this.page = pageSize;
    }
}
